{% extends "base.html" %}

{% block title %}Sign up{% endblock %}

{% block ad %}
{% endblock %}

{% block content %}
<div id="dWrapper">
  <div id="dPopBox">
    {% if form.errors %}
    <p class="errors">Please correct the errors below: {{ form.non_field_errors }}</p>
    {% endif %}

    <h1>Create an account</h1>
  
    <form method="post" action="" class="wide">
      {% csrf_token %}
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>
          <label for="id_username">User name</label>
          </td>
          <td>
            {% if form.username.errors %}
              <p class="errors">{{ form.username.errors.as_text }}</p>
            {% endif %}
            {{ form.username }}
          </td>
        </tr>
        <tr> 
          <td>
          <label for="id_mobile">Mobile</label>
          </td>
          <td>
            {% if form.mobile.errors %}
              <p class="errors">{{ form.mobile.errors.as_text }}</p>
            {% endif %}
            {{ form.mobile }}
          </td>
        </tr>
        <tr>
          <td>
          <label for="id_email">Email address </label>
          </td>
          <td>
          {% if form.email.errors %}
            <p class="errors">{{ form.email.errors.as_text }}</p>
          {% endif %}
          {{ form.email }}
          </td>
        </tr>
        <tr>
          <td>
          <label for="id_password1">Password </label>
          </td>
          <td>
          {% if form.password1.errors %}
            <p class="errors">{{ form.password1.errors.as_text }}</p>
          {% endif %}
          {{ form.password1 }}
          </td>
        </tr>
        <tr>
          <td>
          <label for="id_password2">Password (type again) </label>
          </td>
          <td>
          {% if form.password2.errors %}
            <p class="errors">{{ form.password2.errors.as_text }}</p>
          {% endif %}
          {{ form.password2 }}
          </td>
        </tr>
      </table>
      <p class="submit"><input type="submit" value="Register &rarr;"></p>
      <br />
      <p><strong>1~3분내에 입력하신 모바일 번호로 Activate code 문자메시지가 옵니다. 받은 Activate code을 다음 화면에서 넣어 주세요.</strong></p>
    </form>
  </div>
  <br />
  <br />
  <br />
  <br />
  <br />
  <br />
  <br />
  <br />
  <br />
</div>

{% endblock %}

{% block content-related %}
<p>Fill out the form to the left (all fields are required), and your
account will be created; you'll be sent an email with instructions on how
to finish your registration.</p>

<p>We'll only use your email to send you signup instructions. We hate spam
as much as you do.</p>

<p>This account will let you log into the ticket tracker, claim tickets,
and be exempt from spam filtering.</p>
{% endblock %}
